//
//  RBDZNavigationController.m
//  rubaoduanzi
//
//  Created by 李云飞 on 16/9/13.
//  Copyright © 2016年 liyunfei. All rights reserved.
//

#import "RBDZNavigationController.h"

@interface RBDZNavigationController ()

@end

@implementation RBDZNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];

}
+(void)load{//启动的时候把导航条加进去
    //重新定义一个导航条,appearance统一设置导航条,
    UINavigationBar *navBar=[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[self]];//@[self]设置导航条自己
    //注意，UIBarMetricsDefault，在ios9里面只用默认就可以了
    [navBar setBarTintColor:[UIColor colorWithRed:0/255.0 green:176/255.0 blue:61/255.0 alpha:1]];
    //设置导航栏字体大小和颜色
    NSMutableDictionary *attrF=[NSMutableDictionary dictionary];
    attrF[NSFontAttributeName]=[UIFont systemFontOfSize:20];
    attrF[NSForegroundColorAttributeName]=[UIColor whiteColor];
    [navBar setTitleTextAttributes:attrF];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
